package com.lanju.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lanju.service.LanJuUserService;
import com.lanju.util.ServletUtil;

@Controller
@RequestMapping("lanJuUser")
public class LanJuUserController {

	private static final Logger LOGGER = LoggerFactory.getLogger(LanJuUserController.class);
    
    @Autowired
    LanJuUserService lanjuService;
    
    /** 获取用户列表 */
    @RequestMapping("/getUserList")
    @ResponseBody
    @SuppressWarnings("unchecked")
    public Map<String, Object> getUserList(HttpServletRequest request, HttpServletResponse response){
		Map<String, Object> param = ServletUtil.getParameterMap(request);
		Map<String, Object> result=lanjuService.getUserList(param);
        return  result;
    }
}
